package com.tencreat.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum StarStatus {
    /**
     * 评论状态枚举
     */
    VERY_BAD(1,"非常差"),
    WORSE(2,"较差"),
    ORDINARY(3,"一般"),
    QUITE_SATISFIED(4,"比较满意"),
    SATISFIED(5,"非常满意"),;

    StarStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return value + "-" + desc;
    }
}
